<?php

/**
 * Get absolute path for image
 *
 */
class Rapide_View_Helper_Img extends Rapide_View_Helper
{
	/**
	 * Get absolute path for image
	 *
	 * @param string $sImage
	 * @todo Flexible template path
	 * @return string absolute path for given image
	 */
	public function execute($sImage)
	{
		$sSrc = Rapide_Controller_Front::getInstance()
						->getRouter()
						->url();

		$sSrc = $sSrc . 'Template/images/' . $sImage;

		return $sSrc;
	}
}

?>
